package com.violet.sharding.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import javax.validation.Valid;

/**
 * @Author: wqf
 * @Date: 2023/01/11
 * @Description:
 */
@Component
@Setter
@Getter
public class EnvironmentProperty {
    @Value(value="${spring.shardingsphere.datasource.datacenter.url}")
    private String url;
    @Value("${spring.shardingsphere.datasource.datacenter.username}")
    private String username;
    @Value("${spring.shardingsphere.datasource.datacenter.password}")
    private String password;
}
